package com.lanhe.member.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lanhe.member.domain.LhMemberConsumedRec;
import com.lanhe.member.domain.dto.LhMemberConsumedStatDTO;
import org.springframework.stereotype.Repository;

/**
 * 用户消费记录(LhMemberConsumedRec)表数据库访问层
 *
 * @author zhanggl
 * @since 2024-01-16 10:46:23
 */
@Repository
public interface LhMemberConsumedRecMapper extends BaseMapper<LhMemberConsumedRec> {

    //今日的消费次数和总额
    LhMemberConsumedStatDTO selectConsumptionToday();
    // 本月的消费次数和总额
    LhMemberConsumedStatDTO selectConsumptionMonth();
    // 累计的消费次数和总额
    LhMemberConsumedStatDTO selectConsumptionSum();
}

